package com.fenqing.comics.controller;

import com.fenqing.comics.tasks.ComicsTask;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fenqing
 */
@RestController
@Setter(onMethod_ = @Autowired)
public class TestController {

    private ComicsTask comicsTask;

    @GetMapping("/test_start")
    public String testCountry(){
        comicsTask.start();
        return "ok";
    }


}
